﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_User : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void DetailsView1_ItemDeleted(object sender, DetailsViewDeletedEventArgs e)
    {
        GridView1.DataBind();
    }
    protected void DetailsView1_ItemInserted(object sender, DetailsViewInsertedEventArgs e)
    {
        GridView1.DataBind();
    }

    protected void btnGWage_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/Admin/Wage.aspx");
    }
    protected void btnEmployee_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/Admin/Emplooyee.aspx");
    }
    protected void btnCalWage_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/Admin/CalWage.aspx");
    }
    protected void btnSeacrh_Click(object sender, EventArgs e)
    {
        this.SqlDataSource2.SelectParameters["u_Id"].DefaultValue = txtSeach.Text.ToString();//这个就是给参数的赋值语句
        this.SqlDataSource2.DataBind();
        this.GridView1.DataBind();

    }
}